//
//  ESPhotoTableViewCell.h
//  EyeshotPhoto
//
//  Created by admin on 15/7/1.
//  Copyright (c) 2015年 eyeshot. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ESNewPhotoModel.h"
#import "ESToolbar.h"
@class ESPhotoTableViewCell;
@protocol ESPhotoTableViewCellDelegate <NSObject>

- (void)photoTableViewCell:(ESPhotoTableViewCell *)cell didSeletedImage:(UIImage *)image;

@end


@interface ESPhotoTableViewCell : UITableViewCell

@property (nonatomic, strong) UILabel *txtLabel;//发表内容
@property (nonatomic, strong) UIImageView *imageV;//存放图片的imageView;
@property (nonatomic, strong) UIButton *loveButton;//喜欢点赞的个数
@property (nonatomic, strong) UIButton *hateButton;//讨厌的个数
@property (nonatomic, strong) UIButton *repostButton;//分享的个数
@property (nonatomic, strong) UIButton *commentButton;//评论的个数
@property (nonatomic, strong) ESToolbar *bottomView;//为了能让控制器找到进而成为bottom的代理
@property (nonatomic, strong) ESNewPhotoModel *photoModel;
+ (CGFloat)heightForCellWithModel:(ESNewPhotoModel *)model;

@property (nonatomic, weak) id<ESPhotoTableViewCellDelegate>delegate;
@end


